<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="./js/ajax.js"></script>
    <title>Document</title>
</head>
<body>
    <h1 id="h"></h1>
    <div id="con"></div>
    <p id="p"></p>
    <button id="bn">返回</button>
</body>
<script>
        var m=sessionStorage.zz
    if(!m){
        location.href="./11.html"
    }
    var m=location.search.slice(1)
    var nn=location.search
    var n=nn.slice(nn.indexOf("x")+1)
    var rr=sessionStorage.xn
    console.log(rr)
    if(m.indexOf("x")!=-1){
        var ss=sessionStorage.xinwen
        var s=JSON.parse(ss)
        document.getElementById("con").innerHTML=s[rr]
        sessionStorage.asd=1
        console.log(s)
    }else{
        r("http://www.qhdlink-student.top/student/newsinfo.php",text,"username=zyp&userpwd=123456&userclass=70&type=4&m="+m+"","post")
        function text(data){
        document.getElementById("h").innerHTML=data[0].title_news
        document.getElementById("con").innerHTML=data[0].info_news
        document.getElementById("p").innerHTML=data[0].time_news
        }
    }
    document.getElementById("bn").onclick=function(){
        sessionStorage.zz="1"
        sessionStorage.ab="1"
        location.href="22.html"
    }

    var s=sessionStorage.xin
    sessionStorage.xin=s
</script>
</html>